package TANK;

/**
 * @author chenjian
 * @version 1.0
 * @date 2025/3/20 17:09
 * @description
 */
public class Tank {

    public double gongji;
    public double shengming;
    public double fangyu;

    public Tank() {
    }

    public Tank(double gongji, double shengming, double fangyu) {
        this.gongji = gongji;
        this.shengming = shengming;
        this.fangyu = fangyu;
    }

    public double getGongji() {
        return gongji;
    }

    public void setGongji(double gongji) {
        this.gongji = gongji;
    }

    public double getShengming() {
        return shengming;
    }

    public void setShengming(double shengming) {
        this.shengming = shengming;
    }

    public double getFangyu() {
        return fangyu;
    }

    public void setFangyu(double fangyu) {
        this.fangyu = fangyu;
    }
    //射击
    public void shoot(){

    }

    //移动
    public void move(){

    }
    //死亡
    public void die(){

    }

    public  void  show(){
        System.out.println("\t攻击力："+getGongji()+"\t防御："+getFangyu()+"\t生命"+getShengming());
    }

}
